package yf.mall.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 14:16:14 CST 2020
 */
@Getter
public enum AccountRecordBusEnum {


    TRANSFER(0,"调配")
    ,


    CHARGE(1,"充值")
    ,


    PAYMENT(2,"货款")
    ,


    SHARE_REWARD(3,"分享奖励")
    ,


    BACK(4,"返还")
    ,


    PAY(5,"支付")
    ,


    AUTO_PAY(6,"自动支付")
    ,


    AREA_REWARD(7,"区域奖励")
    ,


    SHOP(8,"店铺利润")
    ,


    SHOP_MANAGER_REWARD(9,"店铺管理利润"),

    LEVEL_PROFIT(10,"平级利润");

    int index;
    String value;

    AccountRecordBusEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return AccountRecordBusEnum.values()[idx].getValue();
    }

}
